﻿
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="xheditor-1.1.14-zh-cn.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
		$('#elem1').xheditor({width:'600',height:'400',upImgUrl:'test.php',upImgExt:'jpg,jpeg,gif,png'});
		$("#submit").click(function(){
			$.ajax({
			type:"POST",
			url:"test.php",
			data:{content:$("#elem1").val()},
			});
		});
});
</script>
</head>
<textarea id="elem1"></textarea>
<input type="button" id="submit" value="提交"></input>
</html>
